<?php
include("../site/inc/config.php");

session_start();
$ip = gethostbyaddr($_SERVER['REMOTE_ADDR']);
mysql_query("INSERT INTO tbl_logs VALUES ('', NOW(), '$ip','".$_SESSION["logado"]."', 'Efetuou Logout')");
session_destroy();
print("<script language=\"JavaScript\">parent.location='../site/';</script>");
?>